package com.unism.unisdk.core.transport;

public class RequestData {
	private ApiAttr apiAttr;
	private String requestId;
	private String apiInfo;
	private Long startExecuteTime;
	private Long expectedQuitQueueTime;
	private Long actualQquitQueueTime;
	private Long endExecuteTime;

	public RequestData() {
		this.startExecuteTime = 0L;
		this.actualQquitQueueTime = 0L;
		this.endExecuteTime = 0L;
	}

	public ApiAttr getApiAttr() {
		return this.apiAttr;
	}

	public void setApiAttr(ApiAttr apiAttr) {
		this.apiAttr = apiAttr;
	}

	public String getRequestId() {
		return this.requestId;
	}

	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}
	public String getApiInfo() {
		return this.apiInfo;
	}
	public void setApiInfo(String apiInfo) {
		this.apiInfo = apiInfo;
	}
	public Long getStartExecuteTime() {
		return this.startExecuteTime;
	}
	public void recordStartExecuteTime() {
		this.startExecuteTime = System.currentTimeMillis();
	}
	public Long getExpectedQuitQueueTime() {
		return this.expectedQuitQueueTime;
	}

	public void setExpectedQuitQueueTime(Long expectedQuitQueueTime) {
		this.expectedQuitQueueTime = expectedQuitQueueTime;
	}

	public Long getActualQuitQueueTime() {
		return this.actualQquitQueueTime;
	}

	public void recordActualQuitQueueTime() {
		this.actualQquitQueueTime = System.currentTimeMillis();
	}

	public Long getEndExecuteTime() {
		return this.endExecuteTime;
	}

	public void recordEndExecuteTime() {
		this.endExecuteTime =System.currentTimeMillis();
	}
}